home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ETO Development Tools 4
/
ETO Development Tools 4.iso
/
Tools - Objects
/
Virtual User 1.0
/
Virtual User
/
MPW Scripts
/
Cpp_vu
< prev
next >
Wrap
Text File
|
1991-01-25
|
638b
|
36 lines
#
# File: cpp_vu
#
# Contains: This script preprocesses VU script files using C preprocessor
# redirecting the output to files whose name is same as the corresponding
# script file, with an additional extension '.cpp'
#
#
# Written by: P Nagarajan
#
# Copyright: © 1989 by Apple Computer, Inc., all rights reserved.
#
# Change History:
#
# 6/5/89 naga creation
#
# To Do:
#
set exit 0
set file "{1}"
Loop
If "`Exists -f "{file}"`" != ""
C -e "{file}" > "{file}.cpp"
echo "{file}.cpp"
Else
echo "{file} does not exist!" >> "{Worksheet}"
exit 1
End #If file exists
Shift
Break If {#} == 0
Set file "{1}"
End